package com.bonc.ioc.demo.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class Teacher {

    private static final long serialVersionUID = 8809101560720973267L;

    private Integer id;

    @NotEmpty(message = "姓名不能为空")
    private String name;

    private String address;

    private int num;

    private String email;

    private String phoneNum;

    //eeeee
}
